[INFO] cloning repository https://github.com/Kartik-Saini77/Debugger
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Kartik-Saini77/Debugger" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKartik-Saini77%2FDebugger", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKartik-Saini77%2FDebugger'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] f0a67603ea0fe99ce125ba8ae91ca83287556651
[INFO] checking Kartik-Saini77/Debugger against try#8ac0915e346f9a2e49ca3951b642c55bd7d1eaab for pr-158447
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKartik-Saini77%2FDebugger" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'...
[INFO] [stderr] done.
[INFO] removed /workspace/builds/worker-0-tc2/source/.cargo/config.toml
[INFO] started tweaking git repo https://github.com/Kartik-Saini77/Debugger
[INFO] finished tweaking git repo https://github.com/Kartik-Saini77/Debugger
[INFO] tweaked toml for git repo https://github.com/Kartik-Saini77/Debugger written to /workspace/builds/worker-0-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Kartik-Saini77/Debugger on toolchain 8ac0915e346f9a2e49ca3951b642c55bd7d1eaab
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8ac0915e346f9a2e49ca3951b642c55bd7d1eaab" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Kartik-Saini77/Debugger already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8ac0915e346f9a2e49ca3951b642c55bd7d1eaab" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 1fe4e5cbf386796a5025509bd95153ab9799c49ce060861ba6d4445f46aa1495
[INFO] running `Command { std: "docker" "start" "1fe4e5cbf386796a5025509bd95153ab9799c49ce060861ba6d4445f46aa1495", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "1fe4e5cbf386796a5025509bd95153ab9799c49ce060861ba6d4445f46aa1495" "/opt/rustwide/cargo-home/bin/cargo" "+8ac0915e346f9a2e49ca3951b642c55bd7d1eaab" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "1fe4e5cbf386796a5025509bd95153ab9799c49ce060861ba6d4445f46aa1495", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "1fe4e5cbf386796a5025509bd95153ab9799c49ce060861ba6d4445f46aa1495" "/opt/rustwide/cargo-home/bin/cargo" "+8ac0915e346f9a2e49ca3951b642c55bd7d1eaab" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling rustix v1.1.3
[INFO] [stderr]    Compiling libc v0.2.180
[INFO] [stderr]     Checking linux-raw-sys v0.11.0
[INFO] [stderr]     Checking endian-type v0.1.2
[INFO] [stderr]     Checking memchr v2.7.6
[INFO] [stderr]     Checking home v0.5.12
[INFO] [stderr]     Checking unicode-segmentation v1.12.0
[INFO] [stderr]    Compiling nix v0.30.1
[INFO] [stderr]     Checking nibble_vec v0.1.0
[INFO] [stderr]     Checking radix_trie v0.2.1
[INFO] [stderr]     Checking fd-lock v4.0.4
[INFO] [stderr]     Checking rustyline v17.0.2
[INFO] [stderr]     Checking debugger v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `self`
[INFO] [stdout]  --> src/debug/process.rs:1:25
[INFO] [stdout]   |
[INFO] [stdout] 1 | use nix::{sys::ptrace::{self, attach}, unistd::Pid};
[INFO] [stdout]   |                         ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0624]: associated function `attach` is private
[INFO] [stdout]   --> src/utils/attach.rs:10:18
[INFO] [stdout]    |
[INFO] [stdout] 10 |         Process::attach(&args[2])
[INFO] [stdout]    |                  ^^^^^^ private associated function
[INFO] [stdout]    |
[INFO] [stdout]   ::: src/debug/process.rs:16:5
[INFO] [stdout]    |
[INFO] [stdout] 16 |     fn attach(pid_arg: &str) -> Result<Process, String> {
[INFO] [stdout]    |     --------------------------------------------------- private associated function defined here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/utils/attach.rs:10:9
[INFO] [stdout]    |
[INFO] [stdout]  8 | /     if args.len() == 3 && args[1] == "-p" {
[INFO] [stdout]  9 | |         //  -p target_pid
[INFO] [stdout] 10 | |         Process::attach(&args[2])
[INFO] [stdout]    | |         ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found `Result<Process, String>`
[INFO] [stdout] 11 | |     } else {
[INFO] [stdout] ...  |
[INFO] [stdout] 39 | |     }
[INFO] [stdout]    | |_____- expected this to be `()`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected unit type `()`
[INFO] [stdout]                    found enum `Result<Process, String>`
[INFO] [stdout] help: consider using a semicolon here
[INFO] [stdout]    |
[INFO] [stdout] 10 |         Process::attach(&args[2]);
[INFO] [stdout]    |                                  +
[INFO] [stdout] help: you might have meant to return this value
[INFO] [stdout]    |
[INFO] [stdout] 10 |         return Process::attach(&args[2]);
[INFO] [stdout]    |         ++++++                          +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/utils/attach.rs:20:21
[INFO] [stdout]    |
[INFO] [stdout] 17 | /             match fork_res {
[INFO] [stdout] 18 | |                 Ok(ForkResult::Parent { child }) => {
[INFO] [stdout] 19 | |                     let pid = child.as_raw();
[INFO] [stdout] 20 | |                     Ok(pid)
[INFO] [stdout]    | |                     ^^^^^^^ expected `()`, found `Result<i32, _>`
[INFO] [stdout] ...  |
[INFO] [stdout] 36 | |                 Err(e) => Err(format!("Fork failed: {}", e)),
[INFO] [stdout] 37 | |             }
[INFO] [stdout]    | |_____________- expected this to be `()`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected unit type `()`
[INFO] [stdout]                    found enum `Result<i32, _>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/utils/attach.rs:40:5
[INFO] [stdout]    |
[INFO] [stdout]  7 | pub fn attach(args: Vec<String>) -> Result<Process, String> {
[INFO] [stdout]    |                                     ----------------------- expected `Result<Process, String>` because of return type
[INFO] [stdout] ...
[INFO] [stdout] 40 |     ()
[INFO] [stdout]    |     ^^ expected `Result<Process, String>`, found `()`
[INFO] [stdout]    |
[INFO] [stdout]    = note:   expected enum `Result<Process, String>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout] help: try adding an expression at the end of the block
[INFO] [stdout]    |
[INFO] [stdout] 40 ~     ();
[INFO] [stdout] 41 +     Ok(())
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `self`
[INFO] [stdout]  --> src/debug/process.rs:1:25
[INFO] [stdout]   |
[INFO] [stdout] 1 | use nix::{sys::ptrace::{self, attach}, unistd::Pid};
[INFO] [stdout]   |                         ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0308, E0624.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stdout] error[E0624]: associated function `attach` is private
[INFO] [stdout]   --> src/utils/attach.rs:10:18
[INFO] [stdout]    |
[INFO] [stdout] 10 |         Process::attach(&args[2])
[INFO] [stdout]    |                  ^^^^^^ private associated function
[INFO] [stdout]    |
[INFO] [stdout]   ::: src/debug/process.rs:16:5
[INFO] [stdout]    |
[INFO] [stdout] 16 |     fn attach(pid_arg: &str) -> Result<Process, String> {
[INFO] [stdout]    |     --------------------------------------------------- private associated function defined here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `debugger` (lib test) due to 4 previous errors; 1 warning emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/utils/attach.rs:10:9
[INFO] [stdout]    |
[INFO] [stdout]  8 | /     if args.len() == 3 && args[1] == "-p" {
[INFO] [stdout]  9 | |         //  -p target_pid
[INFO] [stdout] 10 | |         Process::attach(&args[2])
[INFO] [stdout]    | |         ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found `Result<Process, String>`
[INFO] [stdout] 11 | |     } else {
[INFO] [stdout] ...  |
[INFO] [stdout] 39 | |     }
[INFO] [stdout]    | |_____- expected this to be `()`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected unit type `()`
[INFO] [stdout]                    found enum `Result<Process, String>`
[INFO] [stdout] help: consider using a semicolon here
[INFO] [stdout]    |
[INFO] [stdout] 10 |         Process::attach(&args[2]);
[INFO] [stdout]    |                                  +
[INFO] [stdout] help: you might have meant to return this value
[INFO] [stdout]    |
[INFO] [stdout] 10 |         return Process::attach(&args[2]);
[INFO] [stdout]    |         ++++++                          +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/utils/attach.rs:20:21
[INFO] [stdout]    |
[INFO] [stdout] 17 | /             match fork_res {
[INFO] [stdout] 18 | |                 Ok(ForkResult::Parent { child }) => {
[INFO] [stdout] 19 | |                     let pid = child.as_raw();
[INFO] [stdout] 20 | |                     Ok(pid)
[INFO] [stdout]    | |                     ^^^^^^^ expected `()`, found `Result<i32, _>`
[INFO] [stdout] ...  |
[INFO] [stdout] 36 | |                 Err(e) => Err(format!("Fork failed: {}", e)),
[INFO] [stdout] 37 | |             }
[INFO] [stdout]    | |_____________- expected this to be `()`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected unit type `()`
[INFO] [stdout]                    found enum `Result<i32, _>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/utils/attach.rs:40:5
[INFO] [stdout]    |
[INFO] [stdout]  7 | pub fn attach(args: Vec<String>) -> Result<Process, String> {
[INFO] [stdout]    |                                     ----------------------- expected `Result<Process, String>` because of return type
[INFO] [stdout] ...
[INFO] [stdout] 40 |     ()
[INFO] [stdout]    |     ^^ expected `Result<Process, String>`, found `()`
[INFO] [stdout]    |
[INFO] [stdout]    = note:   expected enum `Result<Process, String>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout] help: try adding an expression at the end of the block
[INFO] [stdout]    |
[INFO] [stdout] 40 ~     ();
[INFO] [stdout] 41 +     Ok(())
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0308, E0624.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `debugger` (lib) due to 4 previous errors; 1 warning emitted
[INFO] running `Command { std: "docker" "inspect" "1fe4e5cbf386796a5025509bd95153ab9799c49ce060861ba6d4445f46aa1495", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "1fe4e5cbf386796a5025509bd95153ab9799c49ce060861ba6d4445f46aa1495", kill_on_drop: false }`
[INFO] [stdout] 1fe4e5cbf386796a5025509bd95153ab9799c49ce060861ba6d4445f46aa1495
